/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ventasautomotrices;

/**
 *
 * @author Chapas
 */
public class ConcreteCommand /*Query*/ implements Command {

    String comando = "";
    Receiver receptor = new Receiver();
    
    @Override
    public void ejecutar() {
        System.out.println("---- Ejecutando: " + this.comando);
        receptor.update(this.comando);
    }
    
    public ConcreteCommand (String Query){
        this.comando = Query;
        System.out.println("Comando creado: " + this.comando);
    }
    
    public String getComando(){
    return comando;
    }
    
    
}
